package Test;

import java.util.Scanner;

public class t1 {
	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int a = scan.nextInt();
		double b = scan.nextDouble();
		int x1 = scan.nextInt(),x2=scan.nextInt(),x3=scan.nextInt();
		System.out.println(a+" "
				+Integer.toHexString(a) +" "
				+Integer.toOctalString(a));
		System.out.println(String.format("%6.2f", b));
		
	}
}
